aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/sujet/[slug].tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-23 12:29:43 +0100
committerArmand Philippot <git@armandphilippot.com>2022-03-23 12:29:43 +0100
commit4e7a96c5a831882463802cdd4f84fe1464969cb0 (patch)
tree528e2766120465bd74e94a8f5d37db7c3cd5a3cc /src/pages/sujet/[slug].tsx
parent3a20d3ef2d6fcb6c77ca5ad6aeaf6179d23ecb3e (diff)
refactor: use formatjs swc plugin
I'm not able to configure SWC plugins in Next.js so to make it works, all translation must have an id.
Diffstat (limited to 'src/pages/sujet/[slug].tsx')
-rw-r--r--src/pages/sujet/[slug].tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pages/sujet/[slug].tsx b/src/pages/sujet/[slug].tsx
index bb22a88..30dd36c 100644
--- a/src/pages/sujet/[slug].tsx
+++ b/src/pages/sujet/[slug].tsx
@@ -138,6 +138,7 @@ const Topic: NextPageWithLayout<TopicProps> = ({ topic, allTopics }) => {
ariaLabel={intl.formatMessage({
defaultMessage: 'Table of Contents',
description: 'TopicPage: ToC sidebar aria-label',
+ id: 'lsDB5G',
})}
>
<ToC />
@@ -151,6 +152,7 @@ const Topic: NextPageWithLayout<TopicProps> = ({ topic, allTopics }) => {
{
defaultMessage: 'All posts in {name}',
description: 'TopicPage: posts list title',
+ id: 'FLkF2R',
},
{ name: topic.title }
)}
@@ -164,6 +166,7 @@ const Topic: NextPageWithLayout<TopicProps> = ({ topic, allTopics }) => {
ariaLabel={intl.formatMessage({
defaultMessage: 'Sidebar',
description: 'TopicPage: right sidebar aria-label',
+ id: 'eu3beS',
})}
>
<RelatedThematics thematics={relatedThematics.current} />
@@ -172,6 +175,7 @@ const Topic: NextPageWithLayout<TopicProps> = ({ topic, allTopics }) => {
title={intl.formatMessage({
defaultMessage: 'Others topics',
description: 'TopicPage: topics list widget title',
+ id: '+4tiVb',
})}
/>
</Sidebar>